package com.wzx.selfuse.mapper;

import com.wzx.selfuse.entity.PlanCust;
import com.wzx.selfuse.entity.PlanOrder;
import com.wzx.selfuse.entity.PlanPro;
import com.wzx.selfuse.vo.PlanOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Plan_IOrderMapper {
    //查询订单列表
    List<PlanOrderVo> getOrderList();

    //添加订单
    int addOrder(PlanOrder planOrder);

    //通过订单编号查询订单
    PlanOrderVo getOrderByOrderNumber(@Param("orderNumber") String orderNumber);

    //通过客户名称查询订单
    List<PlanOrderVo> getOrderByCustName(@Param("custName") String custName);

    //通过产品名称查询订单
    List<PlanOrderVo> getOrderByProName(@Param("proName") String proName);

    //通过orderNumber删除订单
    int deleteOrder(@Param("orderNumber") String orderNumber);


    //通过orderNumber编辑订单
    int editOrder(PlanOrder planOrder);
}
